package com.kaili.basic.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Objects;

@Data
public class MdmAlarmSetVo {

    @ApiModelProperty("主键id")
    private Integer id;

    @ApiModelProperty("告警名称")
    private String alarmName;

    @ApiModelProperty("ROM版本号/告警值")
    private String romVcontent;

    @ApiModelProperty("助手版本哈皮")
    private String aideContent;

    @ApiModelProperty("区id")
    private Integer countyId;

    @ApiModelProperty("详细地址")
    private String detailedAddress;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("围栏半径")
    private BigDecimal radius;

    @ApiModelProperty("告警规则是否开启：0关闭，1开启")
    private String isOn;

    @ApiModelProperty("数据状态：0删除，1正常")
    private String rdStatus;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MdmAlarmSetVo that = (MdmAlarmSetVo) o;
        return Objects.equals(alarmName, that.alarmName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(alarmName);
    }

    public MdmAlarmSetVo() {
    }

    public MdmAlarmSetVo(String alarmName) {
        this.alarmName = alarmName;
    }
}
